* finish killing gui charset handling.
* more char set dead code cleaning
* even more dead code buried.
<rect>
<x>0</x>
<y>0</y>
- <width>280</width>
- <height>185</height>
+ <width>288</width>
+ <height>196</height>
</rect>
</property>
<property name="windowTitle">
</property>
</widget>
</item>
- <item>
- <widget class="QCheckBox" name="enableCharSetXform">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="toolTip">
- <string>Convert character set encoding between input and output</string>
- </property>
- <property name="text">
- <string>Enable character set transformation</string>
- </property>
- </widget>
- </item>
<item>
<widget class="QCheckBox" name="previewGmap">
<property name="text">
outputCharSet_(QString()),
synthShortNames_(false),
forceGPSTypes_(false),
- enableCharSetXform_(false),
debugLevel_(-1),
inputBrowse_(QString()),
outputBrowse_(QString()),
sg.addVarSetting(new BoolSetting("app.synthShortNames", synthShortNames_));
sg.addVarSetting(new BoolSetting("app.forceGPSTypes", forceGPSTypes_));
- sg.addVarSetting(new BoolSetting("app.enableCharSetXform", enableCharSetXform_));
sg.addVarSetting(new StringSetting("app.inputBrowse", inputBrowse_));
sg.addVarSetting(new StringSetting("app.outputBrowse", outputBrowse_));
bool synthShortNames_;
bool forceGPSTypes_;
- bool enableCharSetXform_;
int debugLevel_;
QString inputBrowse_, outputBrowse_;
return 0;
}
-//------------------------------------------------------------------------
-QString MainWindow::charSetFromCombo(QComboBox* combo)
-{
- int i = combo->itemData((combo->currentIndex())).toInt();
- return (i >=0) ? charSets_[i] : QString();
-}
-
-//------------------------------------------------------------------------
-void MainWindow::setComboToCharSet(QComboBox* combo, const QString& cset)
-{
- for (int i=0; i<charSets_.size(); i++) {
- if (charSets_[i] == cset) {
- combo->setCurrentIndex(i+1); // first index is default;
- }
- }
-}
//------------------------------------------------------------------------
void MainWindow::applyActionX()
{
QString babelVersion_;
bool isBeta_;
QPixmap lights_[4];
- QStringList charSets_;
AllFiltersData filterData_;
BabelData babelData_;
bool fmtChgInterlock_;
void loadOutputDeviceNameCombo(const QString& format);
bool formatSupportsUSB(const QString& format);
bool formatSupportsSerial(const QString& format);
- void loadCharSetCombos();
- void checkCharSetCombos();
- QString charSetFromCombo(QComboBox*);
- void setComboToCharSet(QComboBox*, const QString&);
void updateFilterStatus();
void setWidgetValues();
void getWidgetValues();